// The Vue build version to load with the `import` command
// (runtime-only or standalone) has been set in webpack.base.conf with an alias.
import Vue from 'vue'
import App from './App'

Vue.config.productionTip = false

//注册vuex
import Vuex from "vuex";
Vue.use(Vuex)
//创建仓库
const store  = new Vuex.Store({
  //state会转绑给当前store作为属性
  state:{count:0}
})
//注册仓库
/* eslint-disable no-new */
new Vue({
  el: '#app',
  components: { App },
  template: '<App/>',
  store
})
